package com.nmsl.nurse.service.impl;

import com.nmsl.nurse.domain.MDepartments;
import com.nmsl.nurse.mapper.MDepartmentsMapper;
import com.nmsl.nurse.service.IMDepartmentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MDepartmentsServiceImpl implements IMDepartmentsService {
    @Autowired
    private MDepartmentsMapper mDepartmentsMapper;
    @Override
    public MDepartments selectByPrimaryKey(Long id) {
        return mDepartmentsMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<MDepartments> selectall() {
        return mDepartmentsMapper.selectall();
    }
}
